<!--
Computer Science Course 531 - Introduction to Software Engineering
Olive Insurance Client Management System (Client Database Access)
Version 1.0 (Base System)
Spring 2011

-- Source Code Details --
Page Tile: logOut.php
Created By: David Gonzalez, Computer Science (Undergraduate)
Documented By: Darrius Serrant, Computer Science (Undergraduate)
Purpose: Simple script that logs users out of the application by destroying their active sessions.
Status: Completed.
-->
<?php
session_start();
if(isset($_SESSION['user_name'])){
    $_SESSION = array();
    if(isset($_COOKIE[session_name()])){
        setcookie(session_name(), '', time() - 3600);
    }
    session_destroy();
}
header('Location: http://localhost:8888/PHP3/signIn.php');
?>